package com.yonyou.cyxdms.sysAuth.service.mapper.notification;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yonyou.cyx.framework.dao.base.SuperMapper;
import com.yonyou.cyxdms.sysAuth.service.entity.notification.NotificationFeedbackPO;
import com.yonyou.cyxdms.sysAuth.service.vo.notification.NotificationSearchVO;
import com.yonyou.cyxdms.sysAuth.service.vo.notification.NotificationUserVO;
import com.yonyou.cyxdms.sysmanage.client.vo.role.UserbyRoleVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 通知通告反馈记录表 Mapper 接口
 * </p>
 *
 * @author adu
 * @since 2019-10-14
 */
@Repository
public interface NotificationFeedbackMapper extends SuperMapper<NotificationFeedbackPO> {
    void deleteWithdrawUser(List<Long> ids, Integer isNo);

    List<Map> selectListBySql4Excel(@Param("params") Map<String, Object> params);

    List<Map<String, Object>> getNotificationList(Page page, @Param("params") Map<String, Object> queryCondition);

    List<UserbyRoleVO> getUserInfoByRole(String toString, String toString1);

    Integer selectByUId(@Param("notificationId") Integer notificationId, @Param("userId") Integer userId);

    List<NotificationUserVO> factoryUserNotification(@Param("page") Page<NotificationUserVO> page, @Param("notificationSearchVO") NotificationSearchVO notificationSearchVO);

    NotificationUserVO factoryUserNotificationItem(@Param("notificationId") Long notificationId);
}



